#ifndef __ADC_RT1064_H
#define __ADC_RT1064_H


/*---------------C Scope-----------------------------*/
#ifdef __cplusplus
extern "C"
{
#endif
#include "fsl_adc.h"

#ifdef __cplusplus
}

#include "gpio/ADC/ADC.h"
class ADC_RT1064:public ADC{

private:
    ADC_Type *base = nullptr;
		uint8_t chanel_group;
		const adc_channel_config_t* channels_config=nullptr;

		void ChannelInit();

public:
    ADC_RT1064(uint8_t _ChanelNum,const adc_channel_config_t * _channels_config,uint8_t _group,ADC_Type *_base=ADC1):ADC(_ChanelNum,BIT16),channels_config(_channels_config),chanel_group(_group),base(_base){
		};
    virtual void Init() override;

    void Sample();

};
#endif



/*-----------------C++     Scope-----------------------*/

#endif
